<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//声明一个不定参数的函数，计算所有传入参数的和。
			var sum = 0;
			function fb(...arges){
				//for in
				// for(var value in arges){
				// 	sum = sum + arges[value];
				// }
				for(var value of arges){
					sum = sum + value;
				}
			}fb(1,2,5)
			console.log(sum);
		</script>
	</body>
</html>
